
import os
import sys
import uvicorn
from dotenv import dotenv_values
env_vars = dotenv_values(".env")
sys.path.append(env_vars["DEFAULT_PATH"])
os.environ['ENVIRONMENT']=env_vars['ENVIRONMENT']
# 运行项目：开发模式

if __name__ == "__main__":
    uvicorn.run("app.main:app", host="0.0.0.0", port=int(env_vars["PORT"]),workers=2)
